package test;
import java.util.Scanner;

//句子逆序

public class topic01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] split = str.split(" ");
        String newstr = "";
        for (int i = split.length - 1 ; i >= 0 ; i--) {
            if (i>0){
                newstr += split[i] + " ";
            }
            else{
                newstr += split[i];
            }
        }
        System.out.print(newstr);
    }
}
